package cn.exrick.xboot.modules.transport.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "订单-车辆信息")
public class OrderCarInfoParam {

    @ApiModelProperty(value = "车辆名称")
    private String carName;

    @ApiModelProperty(value = "车辆识别号")
    private String carNumber;

    @ApiModelProperty(value = "保险金额")
    @NotNull(message = "保险金额不能为空")
    @DecimalMin(value = "0.0", inclusive = true, message = "保险金额不能小于0")
    private BigDecimal insuranceAmount;

    @ApiModelProperty(value = "保险费率")
    private BigDecimal insuranceRatio;

    @ApiModelProperty(value = "车辆照片地址")
    private List<String> fileUrlList;

}